package com.vinoxm.common.core.application;

import com.vinoxm.common.core.configure.GlobalWebConfigure;
import com.vinoxm.common.core.interceptor.CustomHandlerInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;

public class InterceptorApplication extends BaseApplication {

    @Bean
    @ConditionalOnBean(value = {CustomHandlerInterceptor.class})
    public GlobalWebConfigure webConfigure() {
        return new GlobalWebConfigure();
    }
}
